//
//  YHGameLayerLoading.h
//  ThunderWarriors
//
//  Created by heinic on 13-6-24.
//
//

#ifndef __ThunderWarriors__YHGameLayerLoading__
#define __ThunderWarriors__YHGameLayerLoading__

#include "YHLayer.h"



class YHGameLayerLoading : public YHLayer {
public:
    YHGameLayerLoading();
    virtual ~ YHGameLayerLoading();
    virtual bool init();
    virtual void onEnterTransitionDidFinish();
    
   
    
    
    CREATE_FUNC(YHGameLayerLoading)
    CREATE_FUNC_LAYER_WITHID(YHGameLayerLoading)
    DECLARE_CREATE_CLASS(YHGameLayerLoading)
    
private:
    int assetCount;
    CCProgressTimer *progress;//此变量用来显示进度条
    float progressInterval;//此变量用来计算媒体进度条的更新量
    void progressUpdate();
    void loadComplete();

};


#endif /* defined(__ThunderWarriors__YHGameLayerLoading__) */

